from utils import restful
from .models import *
from .serializers import BuildManageSerializer


def get_build_detail(request):
    build_id = request.GET.get('build_id')
    build_obj = BuildManage.objects.filter(id=build_id)
    data = BuildManageSerializer(build_obj, many=True).data

    return restful.ok(data=data)
